home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / frame_7 / PlaceObject2_176_74 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2007-09-27  |  844 b   |  28 lines

  1. onClipEvent(load){
  2.    isNegative = 0;
  3.    _width = random(50) + 77;
  4.    myColor = new Color(this);
  5.    orig = myColor.getTransform();
  6.    if(_root.negativeColor == 1)
  7.    {
  8.       myColor.negative();
  9.       isNegative = 1;
  10.    }
  11.    if(_root.negativeColor == 0)
  12.    {
  13.       myColor.setTransform(_root.orig1);
  14.       isNegative = 0;
  15.    }
  16.    this.dupeOnce = 1;
  17.    dropSpike = random(_root.spikeChances);
  18.    if(dropSpike == 0 && this != _root.ground)
  19.    {
  20.       _root.spike.duplicateMovieClip("spike" + _root.spikeCount,_root.i + 5000);
  21.       _root["spike" + _root.spikeCount]._y = this._y;
  22.       _root["spike" + _root.spikeCount]._x = this._x;
  23.       _root["spike" + _root.spikeCount]._height = random(_root.spikeHeightAdd) + _root.spikeHeightMin;
  24.       _root.spikeCount = _root.spikeCount + 1;
  25.       _root.i = _root.i + 1;
  26.    }
  27. }
  28.